import request from '@/utils/request'

// 查询服务对象列表
export function listServiceObject(query) {
    return request({
        url: '/pg/serviceObject/list',
        method: 'get',
        params: query
    })
}

// 查询服务对象所有列表
export function listAllServiceObject(query) {
    return request({
        url: '/pg/serviceObject/listAll',
        method: 'get',
        params: query
    })
}

// 查询服务对象详细
export function getServiceObject(id) {
    return request({
        url: '/pg/serviceObject/' + id,
        method: 'get'
    })
}

// 新增服务对象
export function addServiceObject(data) {
    return request({
        url: '/pg/serviceObject',
        method: 'post',
        data: data
    })
}

// 修改服务对象
export function updateServiceObject(data) {
    return request({
        url: '/pg/serviceObject',
        method: 'put',
        data: data
    })
}

// 删除服务对象
export function delServiceObject(id) {
    return request({
        url: '/pg/serviceObject/' + id,
        method: 'delete'
    })
}

// 查询服务对象详细
export function getServiceObjectNo() {
    return request({
        url: '/pg/serviceObject/getFileNumber',
        method: 'get'
    })
}